/**
 * created on 14.10.2017
 */
(function () {
  'use strict';

  angular.module('BlurAdmin.theme.components')
      .controller('SetVideoModalCtrl', SetVideoModalCtrl);

  /** @ngInject */
  function SetVideoModalCtrl($scope, $uibModalInstance) {
    $scope.formData = {};
    $scope.inputLenght = 25;
    $scope.descInputLenght = 250;

    $scope.videoSurfaceImgObject = {
      key: 'hm/videoSurface/',
      needCrop: true,
      cropWidth: 350,
      cropHeight: 234,
    };

    $scope.validate = function () {
      $scope.validateFlag = true;
      $scope.formData.videoSurface = $scope.videoSurfaceImgObject.imgUrl;

    };

    $scope.ok = function () {
      $uibModalInstance.close($scope.formData);
    };

    $scope.cancel = function () {
      $uibModalInstance.dismiss('cancel');
    };









  }
})();
